home *** CD-ROM | disk | FTP | other *** search
- Path: utpapa.ph.utexas.edu!wkshih
- From: wkshih@utpapa.ph.utexas.edu ()
- Newsgroups: comp.lang.c
- Subject: Debugging an optimizaed code
- Date: 24 Mar 1996 16:22:36 GMT
- Organization: Physics Department, University of Texas at Austin
- Distribution: na
- Message-ID: <4j3ssc$ri5@geraldo.cc.utexas.edu>
- NNTP-Posting-Host: utpapa.ph.utexas.edu
-
- Hi,
-
- I have a program that crashes when compiled with -O on an IBM machine.
- I have been trying to locate the problem by printing out some variable
- values. But I found that it is nearly impossible since the point it
- crashed moved around when new printf statements were inserted. I was
- compiling with xlc. -O is equivalent to -O2, which is the lowest level
- of optimization according to the man page. Of course, the code works
- fine without -O. Even on a sun workstation the optimized code runs ok.
-
- I would very much appreciate it if somebody can help me out. Thanks!
-
-